<%-- 
    Document   : StaffRegister
    Created on : Nov 22, 2012, 8:48:22 AM
    Author     : vupttse
--%>

<%@page import="ass.data.UserDAL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        String gender = request.getParameter("gender");
        String tel = request.getParameter("tel");
        String address = request.getParameter("address");
        String fullName = request.getParameter("fullName");
        String nationality = request.getParameter("nationality");
        UserDAL.insert(username, password, gender, "Staff", fullName, tel, address, "0", nationality);       
        %>
        <script>
            alert("Adding successful! Click OK to go back!");           
        </script>
        <%
        response.sendRedirect("MainManagerPage.jsp");
        %>
    </body>
</html>
